package com.github.chain.admin.common.enums;

import com.github.framework.core.ErrorMessage;

public enum AdminErrorMsgEnum implements ErrorMessage {
    USER_LOGIN_CAPTCHA_IS_EMPTY("10000_00001_10001","验证码为空","验证码为空"),
    USER_IS_NOT_ADMIN("10000_00001_10002","用户不是管理员","用户不是管理员"),
    USER_ACCOUNT_HAS_BEEN_FROZEN("10000_00001_10003","该账号已被冻结","该账号已被冻结"),
    USER_NAME_OR_PASSWORD_IS_INCORRECT("10000_00001_10005","用户名或密码错误","用户名或密码错误"),
    SYSTEM_EXCEPTION("10000_00001_10006","系统异常,请稍后再试","系统异常,请稍后再试"),
    USER_AUTHENTICATION_FAIL("10000_00001_10007","当前用户认证失败","当前用户认证失败"),
    //*********************************************
    REQUEST_PARAMS_IS_EMPTY("10000_00002_10001","请求参数为空","请求参数为空"),
    CURRENT_USER_NOT_EXIST("10000_00002_10002","当前用户不存在","当前用户不存在"),
    CURRENT_USER_ROLE_NOT_EXIST("10000_00002_10003","当前用户角色不存在","当前用户角色不存在"),

    CURRENT_ROLE_MENU_NOT_EXIST("10000_00002_10004","查询对应角色菜单不存在","查询对应角色菜单不存在"),
    CURRENT_MENU_NOT_EXIST("10000_00002_10005","当前菜单不存在","当前菜单不存在"),
    CURRENT_ROLE_NOT_EXIST("10000_00002_10006","当前角色不存在","当前角色不存在"),
    PASSWORD_NOT_EXIST("10000_00002_10007","密码不能为空","密码不能为空"),
    USERNAME_NOT_EXIST("10000_00002_10008","用户名不能为空","用户名不能为空"),
    CURRENT_USER_STATUS_STOP("10000_00002_10009","当前用户已停用","当前用户已停用"),
    USER_NO_PERMISSIONS("10000_00001_10403","当前用户权限不足","当前用户权限不足"),

    REQUEST_METHOD_NOT_ALLOW("10000_00001_10405","当前请求方法不支持","当前请求方法不支持"),

    REQUEST_PARAMS_ERROR("10000_00001_10400","当前请求参数异常","当前请求参数异常"),
    CURRENT_USER_PASSWORD_IS_NOT_SAME("10000_00002_10010","密码不一致","密码不一致"),
    CURRENT_USER_OPERATION_FAIL("10000_00002_10011","操作失败","操作失败"),
    CURRENT_USER_IS_EXIST("10000_00002_10012","当前用户已存在","当前用户已存在"),
    CURRENT_USER_IS_EXIST_BANK("10000_00002_10013","用户输入空格","用户输入空格"),
    ADD_OK("10000_00002_10014","添加成功","添加成功"),
    DATABASE_OPTION_EXCEPTION("10000_00002_10015","操作数据库异常","操作数据库异常"),
    ROLE_LIST_NOT_EXIST("10000_00002_10016","角色列表为空","角色列表为空"),
    MEANINGLESS_PARAMETER("10000_00002_10017","无意义的参数","无意义的参数"),
    MENU_TYPE_IS_EMPTY("10000_00002_10018","菜单类型为空","菜单类型为空"),
    SELECT_THE_CORRECT_MENU_TYPE("10000_00002_10019","请选择正确的菜单类型","请选择正确的菜单类型"),
    MENU_SORT_IS_EMPTY("10000_00002_10021","请选择正确的菜单排序","请选择正确的菜单排序"),
    MENU_SELECT_FAIL("10000_00002_10022","菜单选择失败","菜单选择失败"),
    MENU_EXIST_SUBMENU("10000_00002_10020","该目录下已有数据不能进行更换类型，若想更改则修改其子类类型","该目录下已有数据不能进行更换类型，若想更改则修改其子类类型")


    ;

    private String code;
    private String message;
    private String errorDetail;

    AdminErrorMsgEnum(String code, String message, String errorDetail) {
        this.code = code;
        this.message = message;
        this.errorDetail = errorDetail;
    }

    @Override
    public String getErrorDetail() {
        return errorDetail;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
